<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateMedioTransporteparada extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('medio_transporteparada', function (Blueprint $table) {
            $table->increments('id_mediotransparada');
            $table->integer('id_medioT');
            $table->integer('id_parada');

            //            $table->primary('id_mediotransparada');
            $table->foreign('id_medioT')->references('id_medioT')->on('medio_transporte');
            $table->foreign('id_parada')->references('id_parada')->on('parada');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('medio_transporteparada');
    }
}
